import os, socket

ROOT = os.path.dirname(os.path.realpath(__file__))
HOSTNAME = socket.gethostname()

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (('Shared Exceptions Account', 'site-exceptions@orgscale.com'),)
MANAGERS = ADMINS

DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'pystrategy'
DATABASE_USER = 'root'
DATABASE_PASSWORD = 'mysql'
DATABASE_HOST = 'localhost'
DATABASE_PORT = '3306'

TIME_ZONE = 'America/Chicago'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True

MEDIA_ROOT = os.path.join(ROOT, 'static')
MEDIA_URL = '/static/'
ADMIN_MEDIA_PREFIX = '/admin/media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = '$a#det7oux$lt@6m_p8jkl&chhpya&(+&oc-v2=lj@0a4e7y$@'

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

ROOT_URLCONF = 'pystrategy.urls'

TEMPLATE_DIRS = (
    os.path.join(ROOT, 'templates'),
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'django_extensions',
    'game_core',
    'map',
    'resources',
    'buildings'#,
    #'units'
)

LOGIN_REDIRECT_URL='/'

try:
    from settings_local import *
except ImportError:
    """ 
    No local installation settings. It's ok 
    """

